var a = require("../../@babel/runtime/helpers/interopRequireDefault").default, e = require("../../config/CT_share_index/index.js"), n = (a(require("../../utils/Tips")), 
a(require("../../kta/index"))), l = require("../../utils/util"), i = getApp();

n.default.Page({
    data: {
        actionEndFlag: !1,
        imgs: [ e.imageBaseUrl.CT_share_index + "bg_face.png", e.imageBaseUrl.CT_share_index + "box_gift.png", e.imageBaseUrl.CT_share_index + "bg_index.png", e.imageBaseUrl.CT_share_index + "banner_share.png", e.imageBaseUrl.CT_share_index + "banner_share_no_phone.jpg", e.imageBaseUrl.CT_share_index + "bg_exchage.png", e.imageBaseUrl.CT_share_index + "banner_rule.png", e.imageBaseUrl.CT_share_index + "btn_inv.png", e.imageBaseUrl.CT_share_index + "box_record.png", e.imageBaseUrl.CT_share_index + "bg_exchage.png", e.imageBaseUrl.CT_share_index + "bg_exchage.png" ]
    },
    onShareAppMessage: function(a) {
        return this.data.actionEndFlag ? "" : (n = i.globalData.aucPhone ? {
            title: "【限时】0元领取畅听王卡，速戳！",
            path: "/pages/CT_share_newUser/index?a=" + i.globalData.aucMiniAuth.a + "&sid=" + i.globalData.aucMiniAuth.sid + "&channel=" + i.globalData.aucChannel,
            imageUrl: e.imageBaseUrl.CT_share_index + "banner_share.png"
        } : {
            title: "快来领会员，手慢无",
            path: "/pages/CT_share_index/index?a=" + i.globalData.aucMiniAuth.a + "&channel=" + i.globalData.aucChannel,
            imageUrl: e.imageBaseUrl.CT_share_index + "banner_share_no_phone.jpg"
        }, console.log(n), n);
        var n;
    },
    forbiddenShare: function(a) {
        this.setData({
            actionEndFlag: a.detail.actionEndFlag
        });
    },
    onLoad: function(a) {
        if (console.log("进入畅听王卡活动首页 onLoad，初始化全局参数"), i.globalData.loginCode = !1, i.globalData.hasAuth = !1, 
        i.globalData.aucMiniAuth.sid = "", console.log("options", a), a.channel && (i.globalData.aucChannel = a.channel), 
        a.q) {
            var e = decodeURIComponent(a.q);
            console.log("option.q解码后", e), console.log("解密channel", (0, l.getQueryStringFromQrCode)(e, "channel")), 
            (0, l.getQueryStringFromQrCode)(e, "channel") && (i.globalData.aucChannel = (0, 
            l.getQueryStringFromQrCode)(e, "channel")), console.log("app.globalData.aucChannel=", i.globalData.aucChannel);
        }
    }
});